//
//  PPMediator.h
//  PPJJ
//
//  Created by ppss on 2021/6/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface PPMediator : NSObject

+ (instancetype _Nonnull)sharedInstance;

// 本地组件调用入口
- (id)performTarget:(NSString *)targetName action:(NSString *)actionName params:(NSDictionary *)params shouldCacheTarget:(BOOL)shouldCacheTarget;
// 远程App调用入口
- (id _Nullable)performActionWithUrl:(NSURL * _Nullable)url completion:(void(^_Nullable)(NSDictionary * _Nullable info))completion;
@end

// 简化调用单例的函数
PPMediator* _Nonnull CT(void);
NS_ASSUME_NONNULL_END
